import request from '@/utils/request'

export function sendCode(phone) {
    console.log('phone', phone)
    return request({
        url: '/user/sendCode',
        method: 'get',
        params: {
            mobile: phone
        }
    })
}

export function loginAPI(mobile, code) {
    console.log('phone', mobile, code)
    return request({
        url: '/user/login',
        method: 'get',
        params: {
            mobile: mobile,
            code: code
        }
    })
}
